<template>
  <div>
    <button @click="decrement">-</button>
    {{ count }}
    <button @click="increment">+</button>
  </div>
</template>
<script lang="ts">
import { Options, Vue } from 'vue-class-component'

@Options({
})
export default class Count extends Vue {
  count = 0

  decrement () {
    this.count >= 0 && this.count--
  }

  increment () {
    this.count++
  }
}
</script>
